#if 0

#include "Linker.h"

using namespace DBServer::Database;

template<class T>
void print(Linker<T>& linker) 
{
    printf("linker len -> \t %d\n", linker.size());
    ListIter<T> *iter = linker.get_iterator();
    do
    {
       printf("%d ", iter->node->data);
    } while (++(*iter));
    
    printf("\n");
}

int main() {
    Linker<int> *int_linker = New<Linker<int>>();
    printf("push_back : \n");
    for (int i = 0; i < 10; ++i)
        int_linker->push_back(i);
    print<int>(*int_linker);

    printf("-------------------------\n");
    printf("push_front : \n");
    for (int i = 20; i > 10; --i) 
        int_linker->push_front(i);
    print<int>(*int_linker);

    printf("-------------------------\n");
    printf("iter_insert and find and get : \n");
    print(*int_linker);
    int _i = 9;
    ListIter<int> *iter1 = int_linker->get(_i);
    ListIter<int> *iter2 = int_linker->find(5);
    printf("get() -> \t%d", iter1->node->data);
    printf("find() -> \t%d", iter2->node->data);

    printf("-------------------------\n");
    printf("rotale : \n");
    print(*int_linker);
    int_linker->rotale(iter1);
    print(*int_linker);

    printf("-------------------------\n");
    printf("erase : \n");
    print(*int_linker);
    int_linker->erase(iter1);
    print(*int_linker);
    int_linker->erase(17);
    print(*int_linker);
}



#endif